<%@ Control Language="C#" AutoEventWireup="true" Codebehind="Views.ascx.cs" Inherits="Framework.Portal.Layouts.Admin.Components.Database.Views" %>
<div>
    <asp:UpdatePanel ID="upanelGridUserManagemt" runat="server" UpdateMode="Conditional"
        RenderMode="Inline">
        <ContentTemplate>
            <table class="content" cellspacing="1" cellpadding="0" width="100%">
                <tr>
                    <td class="header1" colspan="7" align="left">
                        <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="header2" align="left">
                        <asp:CheckBox runat="server" ID="chkAll" onclick="Check(this,'dtgInfos');highlightChkBxRow(this);" /></td>
                    <td class="header2" align="left">
                        Owner</td>
                    <td class="header2" align="left">
                        View</td>
                    <td class="header2" align="left">
                        Creation date</td>
                    <td class="header2" align="left">
                        Indexed</td>
                    <td class="header2" align="left">
                        Property</td>
                    <td class="header2" align="left">
                        Drop</td>
                </tr>
                <asp:Repeater ID="dtgInfos" runat="server" OnItemCommand="dtgInfos_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td class="post" align="left">
                                <input runat="server" id="checkDrop" type="checkbox" value="" />
                            </td>
                            <td class="post" align="left">
                                <asp:Label ID="lblValue" runat="server" Text='<%# Eval("owner") %>'></asp:Label>
                            </td>
                            <td class="post" align="left">
                                <LinkButton:View ID="btnName" runat="server" Text='<%# Eval("name") %>' CommandName="Property"
                                    CommandArgument='<%# Eval("id") %>'></LinkButton:View>
                            </td>
                            <td class="post" align="left">
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("crdate") %>'></asp:Label>
                            </td>
                            <td class="post" align="left">
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Indexed") %>'></asp:Label>
                            </td>
                            <td class="post" align="left">
                                <LinkButton:View ID="btnProperty" runat="server" Text="Property" CommandName="Property"
                                    CommandArgument='<%# Eval("id") %>'></LinkButton:View>
                            </td>
                            <td class="post" align="left">
                                <LinkButton:View ID="btnDrop" runat="server" Text="Drop" CommandName="Drop" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr>
                            <td class="postheader" align="left">
                                <input runat="server" id="checkDrop" type="checkbox" value="" />
                            </td>
                            <td class="postheader" align="left">
                                <asp:Label ID="Label8" runat="server" Text='<%# Eval("owner") %>'></asp:Label>
                            </td>
                            <td class="postheader" align="left">
                                <LinkButton:View ID="btnName" runat="server" Text='<%# Eval("name") %>' CommandName="Property"
                                    CommandArgument='<%# Eval("id") %>'></LinkButton:View>
                            </td>
                            <td class="postheader" align="left">
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("crdate") %>'></asp:Label>
                            </td>
                            <td class="postheader" align="left">
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Indexed") %>'></asp:Label>
                            </td>
                            <td class="postheader" align="left">
                                <LinkButton:View ID="btnProperty" runat="server" Text="Property" CommandName="Property"
                                    CommandArgument='<%# Eval("id") %>'></LinkButton:View>
                            </td>
                            <td class="postheader" align="left">
                                <LinkButton:View ID="btnDrop" runat="server" Text="Drop" CommandName="Drop" CommandArgument='<%# Eval("id") %>'></LinkButton:View>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
                <tr>
                    <td class="postfooter" colspan="7" height="18">
                        <NS:Button LocalizedPage="ACTION" LocalizedTag="CREATE" Authenticated="CREATE" ID="btnCreateView" Text="Create View" runat="server" CssClass="pbutton"
                            OnClick="btnCreateView_Click" />&nbsp;<NS:Button LocalizedPage="ACTION" LocalizedTag="DELETE" Authenticated="DELETE" ID="btnDrop" runat="server"
                                CssClass="pbutton" Text="Drop" OnClick="btnDrop_Click" /></td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
